package com.chenglu.android.ordercomment.mvp.contract;

import com.chenglu.android.common.base.BaseView;
import com.chenglu.android.mine.bean.CommonDataBean;
import com.chenglu.android.mine.bean.PutFileBean;


import java.io.File;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.RequestBody;

/**
 * @author: lyj
 * @Created by Copyright 2023/3/2 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public interface OrderCommentContract {

    /**
     *
     * @description model
     *
     */

    public interface OrderCommentModel{

        Observable<CommonDataBean> getOrderComment(String token, RequestBody requestBody);

        Observable<PutFileBean> getPutFile(String token, File file);
    }


    /**
     *
     * @description view
     *
     */

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void dismissLoading();

        @Override
        void onEmpty(Object tag);

        @Override
        void onError(String errMessage);

        void getOrderComment(CommonDataBean bean);

        void getPutFileSuccess(PutFileBean bean);

    }

    /**
     *
     * @description presenter
     *
     */

    interface OrderCommentPresenter {


        void getOrderComment(String token, RequestBody requestBody);

        void getPutFile(String token, File file);


    }
}